﻿/**
*预约回复
*/
Chenxin.UI.ReplyLoanForm = Chenxin.extend(Chenxin.UI.FormCommon,{
    actionUrl:'/service/logic/ShowListPreliminary.ashx',
    id:'ReplyLoan',
    renderTo:'divReplyLoan',
    title: '预审回复',
    jqmWidth: 650,
    defBBtn:true,
    createForm: function() {
        return Chenxin.FormCommon.ReplyLoanForm(this.id);
    },
    createGrid:function(){
        return new Chenxin.UI.JsonGrid({
            actionUrl: this.actionUrl + '?op=searchCustomer',
            id: 'Customer_grid',
            renderTo: this.id+'_grid',
            hasCheckBox:true,
            cellBorder:true,
            scope:this,
			autoLoad:false,
			pageSize:3,
			exportAble:false,
			hasCheckBox:false,
            columns: {
                CustomerName: {
                    head: '贷款人',
                    width: 70
                },
                IDNum: {
                    head: '贷款人身份证',
                    width: 140
                },
                GJJNum: {
                    head: '公积金账户',
                    width: 90
                },
                SpousesName: {
                    head: '配偶姓名',
                    width: 70
                },
                SpousesIDNum: {
                    head: '配偶身份证',
                    width: 140
                },
                SpousesGJJNum: {
                    head: '配偶公积金账户',
                    width: 90
                }
            }
        });
	},
    initEvent: function() {
    },
//    createComboList:function(){
//        //OrderBank
//        var comboOrderBank= new Chenxin.UI.Combo({
//            containerId: '#OrderBank',
//            name: 'OrderBank',
//            required:false,
//            tbxWidth: 130,
//            colWidth:80,
//            items:comboCommon.BankInfo
//        });
//        return [comboOrderBank];
//    },
    saveSucc: function() {
        this.reloadGrid();
    },
    initComponent: function() {
        Chenxin.UI.ReplyLoanForm.superclass.initComponent.call(this);
        this.grid=this.createGrid();
    }
});

Chenxin.FormCommon.ReplyLoanForm=function(formID){
	return '<table class="tbl_f"><tr><th style="width:105px; height:26px;">房源编号：</th><td><input name="HouseCode" class="inputbox_n fl" type="text" readonly="readonly" style="width:150px;"/></td><th>房源地址：</th><td><input name="Address" class="inputbox_n fl" type="text" readonly="readonly" style="width:150px;"/></td></tr><tr><th>建筑面积：</th><td><input name="BuildingArea" class="inputbox_n fl" type="text" readonly="readonly" style="width:150px;"/></td><th>建筑类型：</th><td><input name="BuildingType" class="inputbox_n fl" type="text" readonly="readonly" style="width:150px;"/></td></tr><tr><th>竣工日期：</th><td><input name="CompleteYear" class="inputbox_n fl" type="text" readonly="readonly" style="width:150px;"/></td><th>总楼层：</th><td><input name="Total_Floor" class="inputbox_n fl" type="text" readonly="readonly" style="width:150px;"/></td></tr><tr><th>成交总价：</th><td><input name="SalePrice_T" class="inputbox_n fl" type="text" readonly="readonly" style="width:150px;"/>万元</td><th>贷款总额：</th><td><input name="LoanTotalMoney" class="inputbox_n fl" type="text" readonly="readonly" style="width:150px;"/>万元</td></tr><tr><th>签约银行：</th><td><input name="OrderBank" class="inputbox_n fl" type="text" style="width:150px;"/></td></tr><tr><th>备注：</th><td colspan="3"><textarea name="OrderBeiZhu" class="textarea_n" cols="80" rows="10" class="textarea_n" style=" float:left; width: 470px; height: 50px; padding:5px;"></textarea></td></tr><tr><td colspan="2" ><input type="hidden"  name="RecordId" /></td></tr></table><div id="'+formID+'_grid"></div>';
};